package com.manager.devicemanager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manager.devicemanager.entity.PDTestcomponentStatus1;
import com.manager.devicemanager.mapper.DPComponentStatus1Mapper;
import com.manager.devicemanager.service.IDpcomponentStatus1Service;
import com.manager.devicemanager.vo.ComponentStatusRequestVO;
import com.manager.devicemanager.vo.DPComponentStatusVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wpf
 * @since 2025-06-30
 */
@Service
public class DpcomponentStatus1ServiceImpl extends ServiceImpl<DPComponentStatus1Mapper, PDTestcomponentStatus1> implements IDpcomponentStatus1Service {
    @Autowired
    private DPComponentStatus1Mapper dpcomponentStatus1Mapper;


    @Override
    public PDTestcomponentStatus1 selectComponentStatusByTestIdAndBoardid(String dataSourceName, String testId, String boardId) {
         return dpcomponentStatus1Mapper.selectComponentStatusByTestIdAndBoardid(testId, boardId);
    }

    @Override
    public List<DPComponentStatusVO> getOneComponentLine(String dataSourceName, ComponentStatusRequestVO componentStatusRequestVO) {
        return  dpcomponentStatus1Mapper.getOneComponentLine(componentStatusRequestVO.getTestid(),componentStatusRequestVO.getBoardid(),componentStatusRequestVO);
    }
}
